package com.njbdqn.qiy_shop.shopservices;

import java.util.List;

import com.njbdqn.qiy_shop.shopdao.MiaoShaDAO;
import com.njbdqn.qiy_shop.shopvo.MiaoShaVO;







public class MiaoShaService {
private MiaoShaDAO mdao;
	
	public MiaoShaService() {
		mdao = new MiaoShaDAO();
	}
	
	public List<MiaoShaVO> resultToArray() {
		return mdao.resultToList();
	}
	
	
	public MiaoShaVO resultToObject(int commodityid) {
		return mdao.findById(commodityid);
	}
}
